package com.an.vhr.controller;

import com.an.vhr.bean.Hr;
import com.an.vhr.service.HrService;
import com.an.vhr.utils.HrUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: an1089
 **/
@RestController
@RequestMapping("/chat")
public class ChatController {
    @Resource
    HrService hrService;
    @GetMapping("/hrs")
    public List<Hr> getAllHrsExceptCurrent(){
        return hrService.getAllHrsExceptCurrent(HrUtils.getCurrentHr().getId());
    }
}
